package io.renren.modules.hos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.hos.entity.CollDoctorEntity;
import io.renren.modules.hos.vo.DoctorVo;

import java.util.Map;

/**
 * 
 *
 * @author ryf
 * @email 2559228480@qq.com
 * @date 2021-12-12 20:01:07
 */
public interface CollDoctorService extends IService<CollDoctorEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据收藏医生的id查询信息
     * @param doctorId
     * @return
     */
    DoctorVo selectDoctorById(Long doctorId);

    /**
     * 添加收藏
     * @param doctorId
     * @return
     */
    boolean addCollDoctor(Long doctorId);

    /**
     * 取消收藏
     * @param doctorId
     * @return
     */
    boolean cancel(Long doctorId);

    /**
     *  查询某个用户的收藏医生信息并分页
     * @param params
     * @return
     */
    PageUtils selectUserColl(Map<String, Object> params);
}

